{include file="../template/header.html" /}


        <div class="my-3 my-md-5">
          <div class="container">
            <div class="row row-cards">
              <div class="col-6 col-sm-4 col-lg-2">
                <div class="card">
                  <div class="card-body p-3 text-center text-success">
                  	<i class="fa fa-user-o fa-3x"></i>
                    <div class="h1 m-0">{$data['nu']}</div>
                    <div class="text-muted mb-4">今日会员</div>
                  </div>
                </div>
              </div>
              <div class="col-6 col-sm-4 col-lg-2">
                <div class="card">
                  <div class="card-body p-3 text-center text-info">
                  	<i class="fa fa-bar-chart-o fa-3x"></i>
                    <div class="h1 m-0">{$data['nc']}</div>
                    <div class="text-muted mb-4">今日病例</div>
                  </div>
                </div>
              </div>
              <div class="col-6 col-sm-4 col-lg-2">
                <div class="card">
                  <div class="card-body p-3 text-center text-primary">
                  	<i class="fa fa-user-circle-o fa-3x"></i>
                    <div class="h1 m-0">{$data['u']}</div>
                    <div class="text-muted mb-4">会员总数</div>
                  </div>
                </div>
              </div>
              <div class="col-6 col-sm-4 col-lg-2">
                <div class="card">
                  <div class="card-body p-3 text-center text-warning">
                  	<i class="fa fa-bars fa-3x"></i>
                    <div class="h1 m-0">{$data['c']}</div>
                    <div class="text-muted mb-4">病例总数</div>
                  </div>
                </div>
              </div>
              <div class="col-6 col-sm-4 col-lg-2">
                <div class="card">
                  <div class="card-body p-3 text-center text-danger">
                  	<i class="fa fa-user-md fa-3x"></i>
                    <div class="h1 m-0">{$data['d']}</div>
                    <div class="text-muted mb-4">医生总数</div>
                  </div>
                </div>
              </div>
              <div class="col-6 col-sm-4 col-lg-2">
                <div class="card">
                  <div class="card-body p-3 text-center">
                  	<i class="fa fa-hospital-o fa-3x"></i>
                    <div class="h1 m-0">{$data['b']}</div>
                    <div class="text-muted mb-4">分店总数</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          {eq name="Think.session.type" value="user"}
          <h3 style="text-align:center">今日预约</h3>
        <div class="my-3 my-md-5">
        	<div class="container">
            <div class="row row-cards">
        	<div class="card">
                    <table class="table card-table table-vcenter">
                        <tr>
                            <th></th>
                            <th>客户姓名</th>
                            <th>联系方式</th>
                            <th>医生姓名</th>
                            <th>预约门店</th>
                            <th>客户诉求</th>
                            <th>预约时间</th>
                            <th>操作</th>
                        </tr>
                        {volist name="arr" id="data" key="i"}
                            <tr>
                                <td>{$i}</td>
                                <td>{$data.c_name}</td>
                                <td>{$data.tel}</td>
                                <td>{$data.d_name}</td>
                                <td>{$data.md_name}</td>
                                <th>{$data.ask}</th>
                                <th>{$data.time}</th>
                                <th>
                                	{if $data.state==0}
                                	<a class="btn btn-sm btn-primary" href="/Appo/Do/id/{$data.appo_id}">就诊</a>
                                	{else}
                                	<a class="btn btn-sm btn-disable" href="javascript:;">已就诊</a>
                                	{/if}
                                </th>
                            </tr>
                        {/volist}
                    </table>
                </div>
 </div>
 </div>
        </div>
        
        <h3 style="text-align:center">今日复诊</h3>
        <div class="my-3 my-md-5">
        	<div class="container">
            <div class="row row-cards">
        	<div class="card">
                    <table class="table card-table table-vcenter">
                        <tr>
                            <th></th>
                            <th>客户姓名</th>
                            <th>联系方式</th>
                            <th>初诊时间</th>
                            <th>复诊时间</th>
                            <th>操作</th>
                        </tr>
                        {volist name="revisit" id="data" key="i"}
                            <tr>
                            	<td>{$i}</td>
                                <td>{$data.name}</td>
                                <td>{$data.tel}</td>
                                <td>{$data.firstdate}</td>
                                <td>{$data.lastdate}</td>
                                <th>
                                	<a class="btn btn-sm btn-primary" href="/Cases/Add/id/{$data.id}/yid/{$Think.session.uid}">复诊</a>
                                </th>
                            </tr>
                        {/volist}
                    </table>
                </div>
 </div>
 </div>
        </div>
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        {/eq}

{include file="../template/footer.html" /}